package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import io.swagger.models.auth.In;

public interface EmployeeService extends IService<Employee> {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     * @param employee 新增员工数据
     * @return 是否插入成功
     */
    Boolean employee(EmployeeDTO employee);

    /**
     * 分页查询
     * @param employeePageQueryDTO
     * @return
     */
    PageResult getEmployeePage(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 启用禁用
     * @param id
     * @param status
     * @return
     */
    Boolean disable(Long id, Integer status);

    /**
     * 员工详情
     * @param id
     * @return
     */
    Employee getEmployeeDetails(Long id);

    Boolean updateEmployeeInfo(EmployeeDTO req);
}
